<template>
  <div style="width:100%;height:100%">
  <component :is="'s-'+ itemContent.type" :getDetail="itemContent.detail"></component>
  </div>
</template>
<script>
const path = require('path')
const files = require.context('@/components/Show/components', false, /\.vue$/)
const modules = {}
files.keys().forEach(key => {
const name = path.basename(key, '.vue')
modules[name] = files(key).default || files(key)
})

export default {
  props: {
    itemContent: Object
  },
  components: {
    ...modules
  }
}
</script>
